package test11To20;

import java.util.Scanner;

public class Test13 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        String[] strs = str.split("\\s+");
        for (int i=strs.length-1;i>=0;i--){
            System.out.print(strs[i]+" ");
        }
    }
}
